home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / LANG / ADA / GNAT / !gcc / adainc / 6 / ads / s-parint < prev    next >
Text File  |  1996-02-12  |  5KB  |  85 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                         GNAT RUNTIME COMPONENTS                          --
  4. --                                                                          --
  5. --            S Y S T E M . P A R T I T I O N _ I N T E R F A C E           --
  6. --                                                                          --
  7. --                                  S p e c                                 --
  8. --                                                                          --
  9. --                             $Revision: 1.5 $                             --
  10. --                                                                          --
  11. --    Copyright (C) 1991,92,93,94,95,1996 Free Software Foundation, Inc.    --
  12. --                                                                          --
  13. -- GNARL is free software; you can  redistribute it  and/or modify it under --
  14. -- terms of the  GNU General Public License as published  by the Free Soft- --
  15. -- ware  Foundation;  either version 2,  or (at your option) any later ver- --
  16. -- sion. GNARL is distributed in the hope that it will be useful, but WITH- --
  17. -- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
  18. -- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License --
  19. -- for  more details.  You should have  received  a copy of the GNU General --
  20. -- Public License  distributed with GNARL; see file COPYING.  If not, write --
  21. -- to  the Free Software Foundation,  59 Temple Place - Suite 330,  Boston, --
  22. -- MA 02111-1307, USA.                                                      --
  23. --                                                                          --
  24. -- As a special exception,  if other files  instantiate  generics from this --
  25. -- unit, or you link  this unit with other files  to produce an executable, --
  26. -- this  unit  does not  by itself cause  the resulting  executable  to  be --
  27. -- covered  by the  GNU  General  Public  License.  This exception does not --
  28. -- however invalidate  any other reasons why  the executable file  might be --
  29. -- covered by the  GNU Public License.                                      --
  30. --                                                                          --
  31. -- GNAT was originally developed  by the GNAT team at  New York University. --
  32. -- It is now maintained by Ada Core Technologies Inc (http://www.gnat.com). --
  33. --                                                                          --
  34. ------------------------------------------------------------------------------
  35.  
  36. with System.RPC;
  37. package System.Partition_Interface is
  38.  
  39.    function Get_Local_Partition_ID return System.RPC.Partition_ID;
  40.    --  Return the Partition_ID of the calling thread. Supports implementation
  41.    --  of D'Partition_ID for the case where D is known to be local (non-RCI,
  42.    --  non-Shared_Passive, non-self reference).
  43.  
  44.    subtype Subprogram_Id is Natural;
  45.    --  This type is used exclusively by stubs. It denotes which subprogram
  46.    --  within an RCI is being called.
  47.  
  48.    subtype Library_Unit_Name is String;
  49.  
  50.    function Get_Active_Partition_ID
  51.      (Name : Library_Unit_Name)
  52.       return System.RPC.Partition_ID;
  53.    --  Return the Partition_ID of the partition to which the named remote
  54.    --  call interface package is assigned. Supports implementation of
  55.    --  D'Partition_ID for RCI packages.
  56.  
  57.    function Get_Passive_Partition_ID
  58.      (Name : Library_Unit_Name)
  59.       return System.RPC.Partition_ID;
  60.    --  Return the partition ID of the partition to which the named shared
  61.    --  passive package was assigned. Supports the implementation of
  62.    --  D'Partition_ID for shared passive packages. This separate function
  63.    --  is necessary because shared passive packages have no thread of control
  64.    --  of their own, and cannot register themselves by making a call to
  65.    --  Register_Server_Elaboration. This function currently always returns 0.
  66.  
  67.    procedure Register_Server_Elaboration
  68.      (Name     : Library_Unit_Name;
  69.       Receiver : System.RPC.RPC_Receiver;
  70.       Version  : String);
  71.    --  Registers the fact that the receiving stub for package Name is now
  72.    --  elaborated. Register the access value to the package's RPC_Receiver
  73.    --  procedure and the version of the package. Called by the receiving
  74.    --  stub for RCI package Name.
  75.  
  76.    function Get_RCI_Package_Receiver
  77.      (Name : in Library_Unit_Name)
  78.       return System.RPC.RPC_Receiver;
  79.    --  Return the access value to Name's RPC_Receiver procedure. Called by
  80.    --  the calling stub when it is necessary to make an RCI call. The value
  81.    --  returned is for marshalling into the Params stream. This call blocks
  82.    --  until the receiving stub for Name is elaborated.
  83.  
  84. end System.Partition_Interface;
  85.